<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" MasterPageFile="~/MasterPage.master" EnableEventValidation="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Import   Namespace= "System.Data" %>
<%@ Import Namespace="System.ComponentModel" %>
<%@ Import Namespace="DataSet1TableAdapters" %>
<%@ Register TagPrefix="ByteBlocks" Namespace="ByteBlocks.FaceBookWeb" %>
<%@ Register TagPrefix="uc" TagName="GalleryFoldersUC" Src="~/UserControls/GalleryFoldersUC.ascx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    
    <table cellpadding="0" cellspacing="0">
    <tr>
    <td style="padding: 3px; width: 40%; vertical-align: top; border-right-style: solid; border-left-style: solid; border-right-width: 8px; border-left-width: 8px; border-right-color: #808080; border-left-color: #808080;" 
            align="left" rowspan="1">
  
        <asp:Repeater ID="Repeater1" runat="server"  OnItemDataBound="Repeater1_ItemDataBound" >
 <ItemTemplate>
    <asp:Table id="Table1" runat="server" Width="100%" BorderWidth="0">
                                     
        <asp:TableRow BackColor="#FFFFFF">
            <asp:TableCell>
            <%-- itas ir Jaunais variants !--%>
                <asp:HyperLink ID="BildeLink1" runat="server" CssClass="img"></asp:HyperLink>
                <asp:HyperLink ID="TitleLink" runat="server" CssClass="virsrakstsLink"></asp:HyperLink>
                       <div class="tableCss2">
                       <%# DataBinder.Eval(Container.DataItem, "MazaisRaksts") %></div>
            <div class="tableCssDat">
            <%# DataBinder.Eval(Container.DataItem, "autors") %> - dat: <%# DataBinder.Eval(Container.DataItem, "datums", "{0:d}")%> - <%#DataBinder.Eval(Container.DataItem,"SadaluLists") %></div>
           
             </asp:TableCell> 
          </asp:TableRow>
    
       
    </asp:Table>
    </ItemTemplate>
  <AlternatingItemTemplate>
    <asp:Table id="Table1" runat="server" Width="100%">
         
        <asp:TableRow >
            <asp:TableCell CssClass="tableCss1">
                 <asp:HyperLink ID="BildeLink2" runat="server" CssClass="img"></asp:HyperLink>
                <asp:HyperLink ID="TitleLink" runat="server" CssClass="virsrakstsLink"></asp:HyperLink>
          <div class="tableCss2">  <%# DataBinder.Eval(Container.DataItem, "MazaisRaksts") %></div>
            <br />
           <div class="tableCssDat">
            <%# DataBinder.Eval(Container.DataItem, "autors") %> - dat: <%# DataBinder.Eval(Container.DataItem, "datums", "{0:d}")%> - <%#DataBinder.Eval(Container.DataItem,"SadaluLists") %></div>           
            </asp:TableCell> 
            
        </asp:TableRow>                   
                
                
    </asp:Table>
   
  </AlternatingItemTemplate>  
<SeparatorTemplate>
<hr align="center" width="97%" size="1" style="color: #CCCCCC" />
   <%--<asp:Image ID="Image1" runat="server" ImageUrl="zimejumi/seperator_line.gif" />--%>
</SeparatorTemplate>

</asp:Repeater>
    </td>
    
   <%-- VIDEO VIDEO VIDEO VIDEOVIDEO VIDEOVIDEO VIDEOVIDEO VIDEOVIDEO VIDEO--%>
   
    <td style="padding: 3px; width: 40%; vertical-align: top; border-right-style: solid; border-right-width: 8px; border-right-color: #808080;" 
            align="left">
    <asp:Repeater ID="Repeater2" runat="server" 
            OnItemDataBound="Repeater2_ItemDataBound">
   
    <ItemTemplate>
    <asp:Table id="Table1" runat="server" Width="100%" BorderWidth="0">
         
        <asp:TableRow>
                    <asp:TableCell>
            <%-- itas ir Jaunais variants !--%>
                <asp:HyperLink ID="BildeLink1" runat="server" CssClass="img"></asp:HyperLink>
                <asp:HyperLink ID="TitleLink" runat="server" CssClass="virsrakstsLink"></asp:HyperLink>                       <div class="tableCss2">
                       <%# DataBinder.Eval(Container.DataItem, "MazaisRaksts") %></div>
            <div class="tableCssDat">
            <%# DataBinder.Eval(Container.DataItem, "autors") %> - dat: <%# DataBinder.Eval(Container.DataItem, "datums", "{0:d}")%> - <%#DataBinder.Eval(Container.DataItem,"SadaluLists") %></div>
           
             </asp:TableCell> 

        </asp:TableRow>
    </asp:Table>
    </ItemTemplate>
  <AlternatingItemTemplate>
    <asp:Table id="Table1" runat="server" Width="100%">
         
             <asp:TableRow BackColor="#FFFFFF">
                    <asp:TableCell CssClass="tableCss1">
                <asp:HyperLink ID="BildeLink2" runat="server" CssClass="img"></asp:HyperLink>
                <asp:HyperLink ID="TitleLink" runat="server" CssClass="virsrakstsLink"></asp:HyperLink><br />
                    <%# DataBinder.Eval(Container.DataItem, "MazaisRaksts") %>
                    <br />
                   <div class="tableCssDat">
                    <%# DataBinder.Eval(Container.DataItem, "autors") %> - dat: <%# DataBinder.Eval(Container.DataItem, "datums", "{0:d}")%> - <%#DataBinder.Eval(Container.DataItem,"SadaluLists") %></div>           
                    </asp:TableCell> 
            
        </asp:TableRow>  
    </asp:Table>
   
  </AlternatingItemTemplate>
  <SeparatorTemplate>
   <%--<hr align="center" width="100%" size="1" color="black"  />--%>
</SeparatorTemplate>
        
    </asp:Repeater>
             <div align="center">
             <br />
        </div>
<%--        <div>
        <div style="background-color: #ffffff; width: 50%;"><asp:Label ID="Label6" runat="server"  CssClass="teksts">video lv</asp:Label></div>

    <div align="center" style="background-color: #ffffff">
        </div>
        </div>--%>
    </td>
<td style="background-position: right top; width: 20%; text-align: center; vertical-align: top; border-right-style: solid; border-right-width: 8px; border-right-color: #808080;" 
                    colspan="1" bgcolor="White" align="center" rowspan="2">

 <div align="left" style="padding-left: 5px"> <asp:Label ID="Label8" runat="server" CssClass="teksts" BackColor="#ffffff">photo of the week</asp:Label>
                    <br /> </div>
                    <div align="center"> <%--style="padding-left: 5px"--%>
                <asp:Label ID="Label2" runat="server" CssClass="teksts_wrap"><%= HttpContext.Current.Session["info"]%></asp:Label>
<a href= "<% = HttpContext.Current.Session["imgBig"]%>" target="_self">
                    <img src="<% = HttpContext.Current.Session["imgSmall"]%>" />
                    </a>
                               
                <div align="center" <%--style="padding-left: 5px"--%>>
                <asp:LinkButton ID="LinkButton1" runat="server" style="padding-left 5px" 
                            PostBackUrl="~/nedelu_bildes.aspx" CssClass="saite">previous week photos</asp:LinkButton><br />

                 <asp:Label ID="Label3" runat="server" Text="send to photo@parbmx.com" 
                    CssClass="teksts_wrap" ></asp:Label></div>
                 
                   <br /></div> <div align="center">
                    <asp:Label ID="Label1" runat="server" Text="#parbmx" 
                    CssClass="teksts_wrap" ></asp:Label><br />
                  <iframe src="http://www.intagme.com/in/?h=cGFyYm14fHNsfDI1MHwxfDF8fG5vfDV8dW5kZWZpbmVk" allowTransparency="true" frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:255px; height: 255px" ></iframe>
                  </div>
                  <br />
                   <div align="left" style="padding-left: 5px"> <asp:Label ID="Label7" runat="server" CssClass="teksts" BackColor="#ffffff">photo galleries</asp:Label>
            </div>
         
           <div align="center"> <%--style="padding-left: 5px"--%> 
    <uc:GalleryFoldersUC ID="galleryFoldersUC" runat="server" DisplayCount="10"/>
    </div>
                   <div style="background-color: #ffffff">  <asp:LinkButton ID="LinkButton8" runat="server" 
                     CssClass="MC_headsmallbuttons" PostBackUrl="Gallery.aspx">more photos</asp:LinkButton>
 </div>

 <br />
 
<%--<asp:ImageButton ID="ImageButton3" runat="server" 
                       ImageUrl="~/baneri/parbmx-sale-pic-250.jpg" PostBackUrl="http://shop.parbmx.com/Default.aspx" />--%>

     



                      <asp:Repeater ID="Repeater3" runat="server" >
        <HeaderTemplate>
            <asp:Label ID="Label2" runat="server" CssClass="MC_headbuttons">NEW PRODUCTS</asp:Label>
            <br />
            <table width="100%">
        </HeaderTemplate>
        <ItemTemplate>
        <tr>
            <td style="vertical-align: middle; text-align: center">
                                                <%# DataBinder.Eval(Container.DataItem, "BildeLink")%>
                                                <br />
                                                <%# DataBinder.Eval(Container.DataItem, "FullLink")%>
                                                <%# DataBinder.Eval(Container.DataItem, "AkcijCena")%>
                                                <br />
            </td></tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr><td style="vertical-align: middle; text-align: center">
                                                <%# DataBinder.Eval(Container.DataItem, "BildeLink")%>
                                                <br />
                                                <%# DataBinder.Eval(Container.DataItem, "FullLink")%>
                                                <%# DataBinder.Eval(Container.DataItem, "AkcijCena")%>
                                                <br />
            </td></tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            
            </table>
            <br />
            <asp:HyperLink ID="HyperLinkMOREsale" runat="server" CssClass="links" 
                NavigateUrl="http://shop.parbmx.com//Default.aspx?value=More">more</asp:HyperLink>
            
        </FooterTemplate>
    </asp:Repeater> 

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MyDB %>" 
        SelectCommand="SELECT * FROM [Table1]"></asp:SqlDataSource>
        <div>
           <br />
             <asp:HyperLink ID="HyperLink7"  CssClass="MC_headsmallbuttons" runat="server" NavigateUrl="~/int_video.aspx">old videos</asp:HyperLink><br />
             <asp:HyperLink ID="HyperLink3"  CssClass="MC_headsmallbuttons" runat="server" NavigateUrl="~/articles.aspx">old articles</asp:HyperLink><br />
            <%-- ?Page=93"--%>
          <br /> 
</div>
      
                        
       </td>
    
    </tr>
    
    
    
    
      
    
    </table>
    
    


     
</asp:Content>

